package com.flexrrb.controls.groupTextInputClasses
{
	import com.flexrrb.core.IGroupTextInputValidator;
	
	import flash.ui.Keyboard;
	
	import mx.collections.ArrayCollection;

	public class SimpleGroupTextInputValidator implements IGroupTextInputValidator
	{
		public function validateText(text:String, dataSet:ArrayCollection):Boolean
		{
			for each(var msg:String in dataSet)
			{
				if(msg == text)
					return true;
			}
			
			return false;
		}
		
	}
}